package com.spark.testU;

import com.spark.dao.TaskDao;
import com.spark.daoImpl.DaoFactory;
import com.spark.daoImpl.TaskDaoImpl;
import com.spark.pojo.Task;
import com.spark.utils.JDBCUtils;
import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.ArrayListHandler;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

/**
 * @author jianger
 * @ date  2018/3/29-14:53
 * @project com.spark.testU
 */
public class JdbcTest {

    public static void main(String[] args) throws SQLException {
        TaskDao daoImpl = DaoFactory.getDaoImpl();

        Task byId = daoImpl.findById(1);
        System.out.println(byId);
    }
}
